package com.jlsoft.web.cmn;

import com.alibaba.fastjson.JSON;
import com.jlsoft.config.SimpleResponse;
import com.jlsoft.service.IIconsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/icons/")
public class IconsController {

    @GetMapping("/")
    public SimpleResponse showIcons() {

        return new SimpleResponse(0, JSON.toJSONString(iconsService.selectList(null)),true);
    }

    @Autowired
    private IIconsService iconsService;

}
